Skip to content

cache problems - #621

Open
LeoPlix wants to merge 1 commit into
stagingfrom
614-cache-problems-when-adding-communications-and-status
Open

LeoPlix wants to merge 1 commit into
stagingfrom
614-cache-problems-when-adding-communications-and-status

Conversation

@LeoPlix

@LeoPlix LeoPlix commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Closes #614

What changed

  • Updated the communication and participation mutations to pass the company or speaker ID directly with each request.
  • Added optimistic cache updates for new communications, with rollback if the request fails.
  • Invalidate the relevant company/speaker and communications queries after updates.

Why it works
The mutations no longer rely on shared, mutable IDs that could point to a different company or speaker by the time an update runs. Each request and cache update now targets the entity it belongs to, so communications and status changes should stay with the right company.

@LeoPlix
LeoPlix requested a review from sancheslfl November 13, 2026 10:09
@LeoPlix LeoPlix linked an issue Nov 13, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache problems when adding communications and status

1 participant